# -*- coding = utf-8 -*-
"""
 Author: 苏苏少年
 File：011.py
 Time: 2022/5/16 16:12
"""

"""
    已知字符串str='skdaskerkjsalkj',统计该字符串中各字母出现的次数!
"""

def count_char(string):
    dict = {}
    for i in string:
        if i not in dict:
            dict[i]=1
        else:
            dict[i]+=1
    return dict
print(count_char('skdaskerkjsalkj'))











